package com.zpark.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {
    @Bean
    public Queue simpleQueue(){
        return new Queue("my_simple_queue");
    }
    @Bean
    public Queue workQueue() {
        Queue queue = new Queue("my_work_queue");
        return queue;
    }
}
